Using websockets increases the code and infrastructure complexity of your app, especially as you scale horizontally. Depending on your needs, you may be able to use Server-Side Events (SSE) instead. Server-Side Events is more efficient than polling, but simple to implement on both the backend and frontend.